package builder.director;

import builder.abstract_builder.ComputerBuilder;
import builder.products.Computer;
import builder.utils.XMLUtil;

public class ComputerAssembleDirector {
    ComputerBuilder builder;
    public ComputerAssembleDirector(ComputerBuilder computerBuilder){
        this.builder = computerBuilder;
    }
    public Computer assemble(){
        builder.buildBoard();
        builder.buildCPU();
        builder.buildRAM();
        builder.buildHardDisk();
        builder.buildDesktop();
        return builder.getComputer();
    }
}
